home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / Sources / src / keybind / Makefile < prev    next >
Encoding:
Makefile  |  1996-09-27  |  1.9 KB  |  78 lines

  1. COMMON_HDRS=    ../h/token.h ../h/getmsg.h ../h/lg.h ../h/rc_comp_str.h ../h/codelg.h
  2.  
  3. COMMON_OBJS=
  4.  
  5. include ../../Configfile
  6.  
  7. OBJS=           codehelp.o keybind.o keytab.o messages.o misc.o msgname.o \
  8.         name.o optmac.o parseasm.o parsecond.o parsemac.o parser.o \
  9.         scanner.o set.o $(MIPSADD)
  10.  
  11. all:        check_common keybind
  12.  
  13. lint:        lint_test $(LINTFILES) awk
  14.         $(LINT) $(CPPFLAGS) $(LINTFLAGS) $(LINTFILES)
  15.  
  16. keybind:        $(OBJS) $(COMMON_OBJS) ../lib/orilib.a
  17.         $(LD) $(LDFLAGS) -o $@ $(OBJS) $(COMMON_OBJS) ../lib/orilib.a $(LIBS)
  18.  
  19. awk:        check_common namelist.h ocltoken.h
  20.  
  21. do_check_common:check_common
  22.  
  23. #{{{}}}
  24. #{{{  automatically generated files
  25. #{{{  files, generated from ../h/msg
  26. msgname.c:      msg2c.awk ../h/msg
  27.         $(AWK) -f msg2c.awk <../h/msg >msgname.c
  28. #}}}
  29. #{{{  files, generated from ../h/tokens
  30. ocltoken.h autotoken.h:    ../h/tokens tok2kbd.awk
  31.         $(AWK) -f tok2kbd.awk <../h/tokens
  32. #}}}
  33. #{{{  ocl token lists
  34. #{{{  utilities, for generating ->
  35. n_list.o:       keybind.h  ../h/defaults.h ../h/os.h ../h/keys.h ocltoken.h
  36.  
  37. n_list:        autotoken.h n_list.o
  38.         $(LD) $(LDFLAGS) -o $@ n_list.o $(LIBS)
  39. #}}}
  40.  
  41. namelist.h:     n_list.c ../h/tokens tok2kbd.awk
  42.         $(MAKE) n_list
  43.         ./n_list >$@
  44.         rm -f n_list n_list.o
  45. #}}}
  46. #}}}
  47.  
  48. install:        check_common keybind
  49.         $(BIN_INSTALL) -m 755 keybind $(BIN_PATH)
  50.  
  51. deinstall:
  52.         rm -f $(BIN_PATH)/keybind
  53.  
  54. empty_depend:
  55.         rm -f *dependencies*
  56.         > dependencies
  57.  
  58. pseudo_depend:    $(COMMON_HDRS) ../lib/*.h awk empty_depend
  59.         echo $(OBJS) $(COMMON_OBJS) ":" *.h $(COMMON_HDRS) >>dependencies
  60.  
  61. depend:        $(COMMON_HDRS) awk empty_depend
  62.         $(GEN_DEPEND)
  63.  
  64. tags:        awk
  65.         ctags -t *.c $(COMMON_OBJS)
  66.  
  67. clean:
  68.         rm -f core symbol.out err.out $(OBJS) n_list.o n_list \
  69.             *.u.c namelist.h ../origami/lg.h \
  70.             autotoken.h ocltoken.h msgname.c tags
  71.  
  72. clobber:        clean empty_depend
  73.         rm -f keybind
  74.         rm -f n_list n_list.o autotoken.h
  75.  
  76. include dependencies
  77. # DO NOT DELETE THIS LINE -- make depend depends on it.
  78.